home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor2 / utils.doc < prev    next >
Text File  |  1995-03-31  |  3KB  |  120 lines

  1. (Comp.sys.hp48) 
  2. Item: 415 by jmorriso@ee.ubc.ca [John Paul Morrison] 
  3.   Subj: some utilities 
  4.   Date: Thu Dec 19 1991 
  5.  
  6. Some little utilities I wrote in RPL code 
  7. by John Paul Morrison, jmorriso@ee.ubc.ca 
  8.  
  9. úÄÄÄÄÄ¿ 
  10. 3 DDX 3 
  11. àÄÄÄÄÄù 
  12. Purely symbolic derivative, does not evaluate the result. 
  13. This works just like the builtin DER function/command, but it 
  14. ignores existing values of the variable. 
  15. Many people (sometimes myself) were annoyed at having to 
  16. purge a variable to calculate a symbolic derivative. 
  17.  
  18. example: if X=0 
  19. 'SIN(X)' 'X' DER will give 1 (in radians mode) 
  20. but  DDX will give 'COS(X)' 
  21. 'X' will not be modified 
  22.  
  23. úÄÄÄÄÄÄ¿ 
  24. 3 DNDX 3 
  25. àÄÄÄÄÄÄù 
  26. Take Nth derivative. uses DDX 
  27.  
  28. úÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ 
  29. 3 DATE\->MENU 3 
  30. àÄÄÄÄÄÄÄÄÄÄÄÄÄù 
  31. Puts the time and date in the menu key area. 
  32. Nice to add to a calender program 
  33.  
  34. úÄÄÄÄÄÄÄÄÄÄ¿ 
  35. 3 SCRLGROB 3 
  36. àÄÄÄÄÄÄÄÄÄÄù 
  37. Loads a GROB into the display, where you can scroll it 
  38. Does not modify PICT 
  39. Press ON to exit 
  40. Based on HP Tools examples 
  41.  
  42. úÄÄÄÄ¿ 
  43. 3 DD 3 
  44. àÄÄÄÄù 
  45. Bring up a catalog menu 
  46.  
  47. By itself it's no big deal, 
  48. but if you use some of Joe Horn's tricks: 
  49.  
  50.  :: 
  51.    Do1st/2nd+:    ( #3EE1A ) 
  52.    ( insert contents of DD here ) 
  53.    ( normal key action here     ) 
  54.  ; 
  55.  
  56. and assign this to a key, you will effectively get DD as a directory 
  57. browser, that can be called from within an editing session. That 
  58. way you can change directories while editing. 
  59.  
  60. Here's how I use it: 
  61. It is assigned to BLUE-SHIFT MTH(key 21.3, since I don't have a printer) 
  62. normally it calls another program called KEYS, otherwise 
  63. it starts the directory browser; when editing. 
  64.  
  65. Example application: 
  66. úÄÄÄÄÄÄÄ¿ 
  67. 3 DDKEY 3 
  68. àÄÄÄÄÄÄÄù 
  69. ASN to 21.3, works in USR mode 
  70. example only, unless you like my setup 
  71.  
  72. úÄÄÄÄÄÄÄÄÄ¿ 
  73. 3 \->DISP 3 
  74. àÄÄÄÄÄÄÄÄÄù 
  75. Put a GROB in the display 
  76. doesn't destroy PICT 
  77.  
  78. It's kind of a patch for \->LCD, since \->LCD 
  79. will load a GROB into the text display, but leaves 
  80. the menu keys displayed, which will hide part of your GROB 
  81.  
  82. úÄÄÄÄÄ¿ 
  83. 3 TMF 3 
  84. àÄÄÄÄÄù 
  85. Turn menu keys off temporarily 
  86. Someone wanted this, so here it is. 
  87.  
  88. You might need to run RECL to initialize 
  89. You do need to run RECL afterwards to recover 
  90. 136 bytes allocated by the program. 
  91.  
  92. úÄÄÄÄÄÄ¿ 
  93. 3 RECL 3 
  94. àÄÄÄÄÄÄù 
  95. Do a "reclaim" of the screen 
  96. Do this after turning menus off 
  97.  
  98.  
  99. I've been interested in electronics since high-school, and I 
  100. still can't remember resistor color codes! (except for the 
  101. mnemonic "Bad boys .... but Violet ..." which doesn't help 
  102. me calculate the values. 
  103.  
  104. úÄÄÄÄÄÄÄÄ¿ 
  105. 3 RES\-> 3 
  106. àÄÄÄÄÄÄÄÄù 
  107. I wrote this part in RPL, not that it needed RPL, but the RPL 
  108. version is smaller, and a lot more elegantly coded than in user 
  109. language. 
  110. This lets you enter the colors, to find the value. 
  111.  
  112. úÄÄÄÄÄÄÄÄ¿ 
  113. 3 \->RES 3 
  114. àÄÄÄÄÄÄÄÄù 
  115. Shows the color codes for a resistor, given a value 
  116. so when you're hunting through the junk drawer... 
  117. This does not give "preferred" values, so if if you 
  118. enter a weird resistor value, you will never see 
  119. that resistor in real circuit. 
  120.